package sf.silly;

public enum Cards {
    ace, one, two, three, four, five, six, seven, eight, nine, ten, jack, queen, king;
    // TODO: i have these caps for variables. change to lower case.
    public static final Cards[] FACE_CARDS = { jack, queen, king };

    public boolean isFaceCard() {
        for (Cards card : FACE_CARDS) {
            if (this == card) return true;
        }
        return false;
    }

    public boolean isThisMyAce() {
        if (this == ace) { return true; }
        return false;
    }
    //CC method.
//    public boolean isNumeric(){
//        	if (this == one){
//        		return true;
//        	}else if (this == two){
//        		return true;
//        	}else if (this == three){
//        		return true;
//        	}else if (this == four){
//        		return true;
//        	}else if (this == five){
//        		return true;
//        	}else if (this == six){
//        		return true;
//        	}else if (this == seven){
//        		return true;
//        	}else if (this == eight){
//        		return true;
//        	}else if (this == nine){
//        		return true;
//        	}else if (this == ten){
//        		return true;
//        	}
//        	return false;
//        }
//    
   // @Awesome method

    public boolean isNumeric(){
        	Find finder = new Find();
        	return finder.in(this, one,two,three,four,five,six,seven,eight,nine,ten);
        }

}
